package com.invengo.module_check.ui.activity.communal;

import android.os.Bundle;

import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.invengo.base.router.RouterActivityPath;
import com.invengo.module_check.BR;
import com.invengo.module_check.R;
import com.invengo.module_check.databinding.ActivityCommunalBinding;

import me.goldze.mvvmhabit.base.BaseActivity;

/**
 * @author buoker
 * @version 1.0.0
 * @date 2023/10/24
 * @className java.lang.String
 */
@Route(path = RouterActivityPath.Check.PAGER_COMMUNAL)
public class CommunalActivity extends BaseActivity<ActivityCommunalBinding,CommunalViewModel> {
    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_communal;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initNavgation() {
        NavController navController = Navigation.findNavController(this, R.id.nav_communal);
        AppBarConfiguration appBarConfiguration =
                new AppBarConfiguration.Builder(navController.getGraph()).build();
        NavigationUI.setupWithNavController(
                binding.communalToolbar, navController, appBarConfiguration);
    }


}
